package com.onec.service.channel.dao;


import com.onec.service.api.dao.BaseRepository;
import com.onec.service.api.enums.ProductEnum;
import com.onec.service.api.enums.StatusEnum;
import com.onec.service.channel.entity.ChannelInfo;
import org.springframework.data.repository.RepositoryDefinition;

import java.util.List;

/**
 * @author ONEC
 */
@RepositoryDefinition(domainClass = ChannelInfo.class, idClass = Long.class)
public interface ChannelInfoRepository extends BaseRepository<ChannelInfo, Long> {

    ChannelInfo findByNo(String channelNo);

    List<ChannelInfo> findByProductAndStatus(ProductEnum productEnum, StatusEnum statusEnum);
}
